package cn.com.ejiakanghu.core.enums;

import org.linlinjava.litemall.db.config.WxPayScoreConfig;

public enum ResultCode {

    SUCCESS(200,"请求成功"),
    SERVER_ERROR(500,"服务异常"),
    ORDER_ERROR_NO_EXISTS(5000,"订单不存在"),
    ORDER_ERROR_NO_PAY(5001,"订单未支付"),
    ORDER_ERROR_CANCEL(5002,"订单已取消"),
    ORDER_ERROR_SYS_CANCEL(5003,"订单超时系统已取消"),
    ORDER_ERROR_LG_RETURN_CANCEL(5004,"归还订单申请已取消"),
    ORDER_PACKAGE_NO_AUTH(5005,"没有查看物流单权限"),
    WX_NODEPOSIT_ERR_NO_LOGIN(6000,"微信未授权登录"),
    WX_NODEPOSIT_ERR_NO_ORDER(6001,"租赁订单还未创建"),
    WX_NODEPOSIT_ERR_REQ_FAIL(6002,"免押订单请求失败"),
    WX_NODEPOSIT_ERR_CREATE_FAIL(6003,"免押订单下单失败"),
    WX_NODEPOSIT_ERR_USER(6004,"免押订单与登录用户不一致"),
    WX_NODEPOSIT_ERR_MAX_DEPOSIT(6005,"超出最大免押金额:￥" + WxPayScoreConfig.MAX_DEPOSIT_YUAN),
    LG_SHUNFENG_ERR_CREATE(7000,"顺丰物流下单失败"),
    LG_SHUNFENG_ERR_CREATE_ERR(7001,"顺丰物流下单失败"),
    ;

    ResultCode(int code,String msg) {
        this.code = code;
        this.msg = msg;
    }

    private final int code;

    private final String msg;

    public  int code(){
        return  code;
    }

    public String msg(){
        return this.msg;
    }
}
